package ysq.xyg.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 基础部分-用户
 * */
public class BaseUser  implements Serializable {

    @Id
    private String userid;

    private String username;

    private String userpassword;

    private String headlogo;

    private Date createtime;

    private String removetag;

    private String departid;

    /**
     * 1:男，2：女
     */
    private String sex;

    private String phone;

    private String brithday;

    private String province;

    private String city;

    private String area;

    private String email;

    @Transient
    private BaseDepart baseDepart;

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid == null ? null : userid.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getUserpassword() {
        return userpassword;
    }

    public void setUserpassword(String userpassword) {
        this.userpassword = userpassword == null ? null : userpassword.trim();
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getRemovetag() {
        return removetag;
    }

    public void setRemovetag(String removetag) {
        this.removetag = removetag == null ? null : removetag.trim();
    }

    public String getDepartid() {
        return departid;
    }

    public void setDepartid(String departid) {
        this.departid = departid == null ? null : departid.trim();
    }

    public BaseDepart getBaseDepart() {
        return baseDepart;
    }

    public void setBaseDepart(BaseDepart baseDepart) {
        this.baseDepart = baseDepart;
    }

    public String getHeadlogo() {
        return headlogo;
    }

    public void setHeadlogo(String headlogo) {
        this.headlogo = headlogo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBrithday() {
        return brithday;
    }

    public void setBrithday(String brithday) {
        this.brithday = brithday;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}